package com.hina.rec.endpoint.req.system;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 角色授权菜单请求
 *
 * @author liaosp
 * @date 2024-01-10
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "角色授权菜单请求")
public class GrantMenusReq {

    /**
     * 角色ID
     */
    @Schema(description = "角色ID", required = true)
    @NotNull(message = "角色ID不能为空")
    private Integer roleId;

    /**
     * 菜单ID列表
     */
    @Schema(description = "菜单ID列表", required = true)
    @NotEmpty(message = "菜单ID列表不能为空")
    private List<Integer> menuIds;
}